package com.kotasoft.iip.processor;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.kotasoft.iip.model.insurance.Payment;

public class ProcessPayment implements Processor {

	private static final Logger LOG = LoggerFactory.getLogger(ProcessPayment.class);

	public void process(Exchange exchange) throws Exception {
		Payment payment = exchange.getIn().getMandatoryBody(Payment.class);
		LOG.debug("Procesando pago {}", payment);
	}
}
